import json

from django.http import HttpResponse
from django.views.decorators.http import require_POST


@require_POST
def index(request):
    id = dict(request.GET).get('id')
    print(id)
    data = {
        "code": 1
    }
    return HttpResponse(json.dumps(data), content_type='application/json')
